<layui:cmsCatalogList var="catalog" id="${parameter.cid }">
	<!--#layout("/common/page.html",{"jsBase":"/js/","title":catalog.name!}){  -->
	<div class="layui-row">
		<!--# var files = core.file(catalog.attachmentId!); -->
		<!--# for(file in files){  -->
		<div class="about_big_img" style="background-repeat:no-repeat; background-image: url(/core/file/download/${file.id }/${catalog.attachmentId}/${file.name })">
			<img class="" style="width: 100%" src="/core/file/download/${file.id }/${catalog.attachmentId}/${file.name }" />
		</div>
		<!--# }  -->
	</div>
	<div class="layui-container">
		<div class="newsList">
			<!--# var limit = parameter.limit!10;  -->
			<layui:cmsArticleList var="articlePage" catalogId="${ stringUtil.toString(catalog.id)}" orderby="show_time desc" page="${parameter.page!'1'}" pageSize="${ stringUtil.toString(limit)}">
				<div class="layui-row">
					<div class="index-news grid">
							<!--#
						for(article in articlePage.list) {
						  -->
						  <div class="news-item middle-x6">
					    	<div class="time"><span><em>${article.showTime,dateFormat="dd"}</em><dl>日</dl></span><span class="day">${article.showTime,dateFormat="yyyy年MM月"}</span></div>
					        <a href="${ctxPath }/article.do?id=${article.id }" class="info">
					        	<div class="news-title">${article.title }</div>
					        	<p class="news-desc">${article.description }</p>
					        </a>
					    </div>
							<!--#} -->
					</div>
					<!--#if (articlePage.totalPage > 1) {  -->
					<div id="page" class="align-center"></div>
					<script>
					layui.use(['laypage'],function() {
						var laypage = layui.laypage;
						//完整功能
						  laypage.render({
						    elem: 'page'
						    ,count: ${articlePage.totalRow!0}
						    ,curr:${parameter.page!1}
						    ,limit:${limit}
						    ,layout: ['count', 'prev', 'page', 'next', 'limit', 'refresh', 'skip']
						    ,jump: function(obj,first){
						      console.log(obj.curr);
						      console.log(obj.limit);
						      //首次不执行
						      if(!first){
						    	  if (obj.limit == '${limit}') {
						    		  document.location.href="/articles.do?id=${catalog.id}&page=" + obj.curr;
						    	  } else {
						    		  document.location.href="/articles.do?id=${catalog.id}&page=" + obj.curr + "&limit=" + obj.limit;
						    	  }
						      }
						    }
						  });
					})
					</script>
					<!--# }  -->
				</div>
			</layui:cmsArticleList>
		</div>
	</div>
	<!--#}  -->
</layui:cmsCatalogList>